<template>
    <div id="users">
        <h1>个人中心</h1>
        <TabBorder></TabBorder>
        <div class="users-container">
            <div class="users-container-left">
                <el-menu
                        :default-active="active"
                        class="el-menu-vertical-demo"
                        background-color="#303133"
                        text-color="#fff"
                        active-text-color="#f3cd20"
                        router>
                    <el-menu-item index="/users/detail">
                        <i class="el-icon-info"></i>
                        <span slot="title">
                            我的信息
                        </span>
                    </el-menu-item>
                    <el-menu-item index="/users/avatar">
                        <i class="el-icon-picture"></i>
                        <span slot="title">
                            我的头像
                        </span>
                    </el-menu-item>
                    <el-menu-item index="/users/uploads">
                        <i class="el-icon-video-camera"></i>
                        <span slot="title">
                            上传视频
                        </span>
                    </el-menu-item>
                    <el-menu-item index="/users/manage">
                        <i class="el-icon-video-play"></i>
                        <span slot="title">
                            视频管理
                        </span>
                    </el-menu-item>
                    <el-menu-item index="/users/aboutme">
                        <i class="el-icon-edit-outline"></i>
                        <span slot="title">
                            查看记录
                        </span>
                    </el-menu-item>
                    <el-menu-item index="/users/norm">
                        <i class="el-icon-setting"></i>
                        <span slot="title">
                            投稿规范
                        </span>
                    </el-menu-item>
                </el-menu>
            </div>
            <div class="users-container-right">
                <router-view></router-view>
            </div>
        </div>
    </div>
</template>

<script>
    import TabBorder from "@/components/TabBorder";
    import {Loading, Message, MessageBox} from 'element-ui';
    export default {
        name: "users",
        data() {
            return {
                active: '/users/detail'
            }
        },
        // 注册组件
        components: {
            TabBorder
        },
        created(){
            let routepath = this.$route.path;
            this.active = routepath;
        },
        methods: {
        }
    }
</script>

<style scoped>
    #users{
        text-align: left;
    }

    .users-container-left{
        width: 15%;
        float: left;
        margin: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
        border-radius: 4px;
    }

    .users-container-right{
        width: 80%;
        margin: 15px;
        float: left;
        background-color: #303133;
        background-repeat: no-repeat;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
        border-radius: 4px;
    }

    .el-menu {
        border-right: none;
    }
</style>
